package com.zhaorui.mapper;

import com.zhaorui.entity.ActivityPrize;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhaorui.entity.TitlePrizeDTO;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

/**
 * @Entity com.zhaorui.entity.ActivityPrize
 */
@Repository
public interface ActivityPrizeMapper extends BaseMapper<ActivityPrize> {

    //综合查询
    List<HashMap> queryPrize(ActivityPrize activityPrize);

    //根据id查询
    ActivityPrize queryPrizeId(Integer id);

    //增加
    void savePrize(ActivityPrize activityPrize);

    //活动的id对应的奖品对应多份
    List<TitlePrizeDTO> queryByTitlePrizeQty(Integer tileId);
}




